﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:Faust_Andrew_MTG_Player_Converters="clr-namespace:Faust.Andrew.MTG.Player.Converters"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<SolidColorBrush x:Key="WindowBackground" Color="#FF4B4B4B"/>
	<!-- Resource dictionary entries should be defined here. -->
	
	<Faust_Andrew_MTG_Player_Converters:DoubleToIntConverter x:Key="DoubleToIntConverter"/>
	<Faust_Andrew_MTG_Player_Converters:TapStateToRotationTransformation x:Key="TapStateToRotationTransformation"/>
	<Faust_Andrew_MTG_Player_Converters:TapStateToBoolConverter x:Key="TapStateToBoolConverter"/>
	<Faust_Andrew_MTG_Player_Converters:VisToBool x:Key="TrueIfVisible" Inverted="False" Not="False" />
	<Faust_Andrew_MTG_Player_Converters:VisToBool x:Key="TrueIfNotVisible" Inverted="False" Not="True" />
	<Faust_Andrew_MTG_Player_Converters:VisToBool x:Key="VisibleIfTrue" Inverted="True" Not="False" />
	<Faust_Andrew_MTG_Player_Converters:VisToBool x:Key="VisibleIfNotTrue" Inverted="True" Not="True" />	
	<Faust_Andrew_MTG_Player_Converters:TurnToBackgroundConverter x:Key="TurnToBackground" />
	<Faust_Andrew_MTG_Player_Converters:InvisibleIfNull x:Key="InvisibleIfNull" />
	<Faust_Andrew_MTG_Player_Converters:ListToStringConverter x:Key="ListToString" />
	<Faust_Andrew_MTG_Player_Converters:CounterListConverter x:Key="CounterListConverter" />
	<Faust_Andrew_MTG_Player_Converters:ColorToBrushConverter x:Key="ColorToBrushConverter" />
	<Faust_Andrew_MTG_Player_Converters:NotificationTypeToBrushConverter x:Key="NotificationTypeToBrushCOnverter" />
	
	<DataTemplate x:Key="CounterListItemTemplate">
		<Grid ToolTip="{Binding Name, Mode=OneWay}">
			<Ellipse Fill="{Binding Color, Converter={StaticResource ColorToBrushConverter}, Mode=OneWay}" Stroke="{x:Null}" Width="65" Height="65" HorizontalAlignment="Center" VerticalAlignment="Center"/>
			<Image Width="75" Height="75" Source="images/counter.png" Panel.ZIndex="1"/>
			<Label HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Foreground="Black" Content="{Binding Value, Mode=OneWay}" FontFamily="Old English Text MT" FontSize="24" Panel.ZIndex="2"/>
		</Grid>
	</DataTemplate>

	<ItemsPanelTemplate x:Key="CounterItemsPanel">
		<WrapPanel IsItemsHost="True"/>
	</ItemsPanelTemplate>			
</ResourceDictionary>